package com.itstudio.portal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itstudio.portal.entity.RestResponse;
import com.itstudio.portal.entity.User;
import com.itstudio.portal.entity.dto.*;
import org.springframework.security.core.userdetails.UserDetailsService;

import javax.servlet.http.HttpServletRequest;

/**
 * (User)表服务接口
 *
 * @author feng
 * @since 2024-11-11 14:51:27
 */
public interface UserService extends IService<User>, UserDetailsService {

    RestResponse loginByCode(LoginCodeDto login);

    boolean sendCode(String phone, Integer code);

    RestResponse register(RegisterDto register);

    RestResponse logout(HttpServletRequest request);

    RestResponse selectUser(Long id);

    RestResponse loginByPasswd(LoginPasswdDto login);

    public boolean phoneExist(String phone);

    RestResponse forgetPassword(ForGetPasswordDto forget);
}

